<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateFreightAreasTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('freight_areas', function (Blueprint $table) {
            $table->increments('id');
            $table->string('first_number', 191)->nullable()->default(0)->comment("首次数量");
            $table->string('first_price', 191)->nullable()->default(0)->comment("首次价格");
            $table->string('continue_number', 191)->nullable()->default(0)->comment("续数量");
            $table->string('continue_price', 191)->nullable()->default(0)->comment("续价格");
            $table->integer('shop_id')->default(0)->nullable()->comment("shop_id");
            $table->integer('status')->default(1)->nullable()->comment("1正常");
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('freight_areas');
    }
}
